Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow use of other protocol in CLI #2658

Merged
merged 3 commits into from
Feb 22, 2024
Merged

Conversation

Fraccaman
Copy link
Member

@Fraccaman Fraccaman commented Feb 19, 2024

Describe your changes

Allow a user to input http/https protocol when supplying --node or --ledger-address

Indicate on which release or other PRs this topic is based on

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

@Fraccaman Fraccaman requested a review from tzemanovic February 19, 2024 15:41
Copy link

codecov bot commented Feb 19, 2024

Codecov Report

Attention: 16 lines in your changes are missing coverage. Please review.

Comparison is base (c733be2) 53.38% compared to head (83b8675) 53.38%.

❗ Current head 83b8675 differs from pull request most recent head eaf56c7. Consider uploading reports for the commit eaf56c7 to get more accurate results

Files Patch % Lines
crates/apps/src/lib/cli/context.rs 0.00% 5 Missing ⚠️
crates/sdk/src/lib.rs 0.00% 4 Missing ⚠️
crates/apps/src/lib/cli.rs 0.00% 3 Missing ⚠️
crates/apps/src/lib/config/genesis/transactions.rs 0.00% 2 Missing ⚠️
crates/apps/src/lib/cli/api.rs 0.00% 1 Missing ⚠️
...s/apps/src/lib/node/ledger/shell/testing/client.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2658   +/-   ##
=======================================
  Coverage   53.38%   53.38%           
=======================================
  Files         302      302           
  Lines      103403   103404    +1     
=======================================
+ Hits        55198    55200    +2     
+ Misses      48205    48204    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Fraccaman Fraccaman requested a review from grarco February 19, 2024 16:11
tzemanovic
tzemanovic previously approved these changes Feb 20, 2024
@Fraccaman Fraccaman force-pushed the fraccaman/allow-http-url-cli branch from a66d4b3 to 7ff35d9 Compare February 20, 2024 12:34
@Fraccaman Fraccaman marked this pull request as ready for review February 20, 2024 12:35
@Fraccaman Fraccaman force-pushed the fraccaman/allow-http-url-cli branch 2 times, most recently from f7a42d4 to 83b8675 Compare February 20, 2024 15:00
Fraccaman pushed a commit that referenced this pull request Feb 20, 2024
* origin/fraccaman/allow-http-url-cli:
  added changelog
  refactor addresses with protocol
  use tendermint_rpc::Url instead of TendermintAddress
grarco
grarco previously approved these changes Feb 20, 2024
Fraccaman pushed a commit that referenced this pull request Feb 20, 2024
@Fraccaman Fraccaman force-pushed the fraccaman/allow-http-url-cli branch from 83b8675 to eaf56c7 Compare February 21, 2024 09:35
Fraccaman pushed a commit that referenced this pull request Feb 21, 2024
* origin/fraccaman/allow-http-url-cli:
  added changelog
  refactor addresses with protocol
  use tendermint_rpc::Url instead of TendermintAddress
@tzemanovic tzemanovic merged commit f4b0caf into main Feb 22, 2024
12 of 15 checks passed
@tzemanovic tzemanovic deleted the fraccaman/allow-http-url-cli branch February 22, 2024 14:40
@zenodeapp
Copy link
Contributor

@Fraccaman tpc should be tcp in the replace.

fn arg_from_ctx(
ctx: &ChainContext,
raw: impl AsRef<str>,
) -> Result<Self, String> {
if raw.as_ref().is_empty() {
return Ok(ctx.config.ledger.cometbft.rpc.laddr.clone());
return Self::from_str(
&ctx.config.ledger.cometbft.rpc.laddr.to_string().replace("tpc", "http"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants